package com.jbl.gof23.structure.proxy;

/**
 * 中介
 */
public class Proxy implements Rent {
    //中介找房东拿到房源
    private Host host;
    public Proxy(){}
    public Proxy(Host host){
       this.host = host;
    }
    //中介租房子
    public void rent() {
        kf();
        sf();
        host.rent();
    }

    public void kf(){
        System.out.println("看房");
    }
    public void sf(){
        System.out.println("收中介费");
    }
}
